# 拾光壁纸
# https://snake.timeline.ink/
# import re
# import time
# from curl_cffi import requests
# # import requests
#
# url = 'https://snake.timeline.ink/random'
# headers = {
#     'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36'
# }
# response = requests.get(url)
# content = response.content.decode('utf-8')
# print(content)
# items = re.findall(r'', content,re.S)
# # for item in items:
# #     print(item)

import requests

cookies = {
    'fp461': 'f36726226a3a173256e3315dfae22a68',
    'timeline-doc-hotkey-windows': '1761961261697',
    'log-gallery': '%5B1761961205311%2C1761961262811%2C1761961346653%2C1761961349502%2C1761961603635%5D',
    'count-gallery': '6',
}

headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'Accept-Language': 'zh-CN,zh;q=0.9,sq;q=0.8',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Pragma': 'no-cache',
    'Referer': 'https://snake.timeline.ink/',
    'Sec-Fetch-Dest': 'document',
    'Sec-Fetch-Mode': 'navigate',
    'Sec-Fetch-Site': 'cross-site',
    'Sec-Fetch-User': '?1',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',
    'sec-ch-ua': '"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    # 'Cookie': 'fp461=f36726226a3a173256e3315dfae22a68; timeline-doc-hotkey-windows=1761961261697; log-gallery=%5B1761961205311%2C1761961262811%2C1761961346653%2C1761961349502%2C1761961603635%5D; count-gallery=6',
}

response = requests.get('https://snake.timeline.ink/', cookies=cookies, headers=headers)
# print(response.status_code)
print(response.text)